PointInspection

public interface PointInspection

Provides information about DOM node at a specified point inside the loaded document.

Properties

Link copied to clipboard
public final String absoluteImageUrl
public final String absoluteImageUrl

Returns the absolute URL of the image located at this point, or an empty string if there is no image at the point.

Link copied to clipboard
public final String absoluteLinkUrl
public final String absoluteLinkUrl

Returns the absolute URL of the link DOM element at this point, or an empty string if there is no link at the point.

Link copied to clipboard
public final Point localPoint
public final Point localPoint

Returns coordinates of the point relative to the node.

Link copied to clipboard
public final Node node
public final Node node

Returns the Node at this point, or null if there is no node at the point.

Link copied to clipboard
public final Element urlElement
public final Element urlElement

Returns the link Element when a link is located at this point, or null if there is no link element at the point.

Functions

Link copied to clipboard
Returns a string that represents the absolute URL of the image located at the point or an empty string if there is no image at the point.
Link copied to clipboard
Returns a string that represents the absolute URL of the link DOM element at the point or an empty string if there is no link at the point.
Link copied to clipboard
public Point localPoint()
Returns coordinates of the point relative to the node.
Link copied to clipboard
public Optional<Node> node()
Returns the Node at the point.
Link copied to clipboard
Returns the link Element when a link is located at the point.